﻿using Api.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Api.Controllers.Useres
{
    public class UserSearchController : Controller
    {

        //LayansContext db = new LayansContext();
        //
        //// GET: /UserSearch/
        //public ActionResult Index()
        //{
        //    return View();
        //}

        //public ActionResult Search(string query)
        //{
        //    var userresult = db.Users.Where(x => x.Name.ToLower().Contains(query.ToLower()))
        //        .Select(x => new userVIewModel
        //        {
        //            name = x.Name,
        //            age = x.years.Year,
        //        }).ToList();


        //    return PartialView("_UserResult", userresult);
        //}
	}
}